import React from "react";
// import { renderRoutes } from "react-router-config";
import { Redirect } from "react-router-dom";
import Home from "../component/home";
import Buy from "../component/buy";
// 使用路由配置去写
export const routers = [
  { path: "/", exact: true, component: () => <Redirect to="/home" /> },
  { path: "/home", component: Home },
  { path: "/buy", component: Buy }
];
